<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>form表单标签 | Introductionbgg</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../md/HTML/列表.html" />
    
    
    <link rel="prev" href="../../md/HTML/iframe标签.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1.3.2"
        data-chapter-title="form表单标签"
        data-filepath="md/HTML/form表单标签.md"
        data-basepath="../.."
        data-revision="Wed Dec 13 2017 12:24:54 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/HTML/HTML系列.html">
            
                
                    <a href="../../md/HTML/HTML系列.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML系列
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="md/HTML/20171205pm.html">
            
                
                    <a href="../../md/HTML/20171205pm.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        20171205pm
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="md/HTML/a标签.html">
            
                
                    <a href="../../md/HTML/a标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.1.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="md/HTML/img标签.html">
            
                
                    <a href="../../md/HTML/img标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.2.</b>
                        
                        img标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="md/HTML/表格.html">
            
                
                    <a href="../../md/HTML/表格.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.3.</b>
                        
                        表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.4" data-path="md/HTML/热区.html">
            
                
                    <a href="../../md/HTML/热区.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.4.</b>
                        
                        热区
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="md/HTML/20171210pm.html">
            
                
                    <a href="../../md/HTML/20171210pm.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        20171210pm
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="md/HTML/video标签.html">
            
                
                    <a href="../../md/HTML/video标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.1.</b>
                        
                        video标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="md/HTML/picture标签.html">
            
                
                    <a href="../../md/HTML/picture标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.2.</b>
                        
                        picture标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="md/HTML/audio标签.html">
            
                
                    <a href="../../md/HTML/audio标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.3.</b>
                        
                        audio标签
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="md/HTML/20171210am.html">
            
                
                    <a href="../../md/HTML/20171210am.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        20171210am
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="md/HTML/iframe标签.html">
            
                
                    <a href="../../md/HTML/iframe标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.1.</b>
                        
                        iframe标签
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="1.3.2" data-path="md/HTML/form表单标签.html">
            
                
                    <a href="../../md/HTML/form表单标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.2.</b>
                        
                        form表单标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="md/HTML/列表.html">
            
                
                    <a href="../../md/HTML/列表.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.3.</b>
                        
                        列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="md/HTML/实体字符.html">
            
                
                    <a href="../../md/HTML/实体字符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.4.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="md/css/css大纲.html">
            
                
                    <a href="../../md/css/css大纲.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        css大纲
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="md/css/css引入方式.html">
            
                
                    <a href="../../md/css/css引入方式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        css引入方式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="md/css/选择器.html">
            
                
                    <a href="../../md/css/选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="md/css/元素选择器.html">
            
                
                    <a href="../../md/css/元素选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="md/css/class选择器.html">
            
                
                    <a href="../../md/css/class选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        class选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="md/css/ID选择器.html">
            
                
                    <a href="../../md/css/ID选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        ID选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="md/css/关系选择器.html">
            
                
                    <a href="../../md/css/关系选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="md/css/伪类选择器.html">
            
                
                    <a href="../../md/css/伪类选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="md/css/属性选择器.html">
            
                
                    <a href="../../md/css/属性选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.6.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="md/css/伪对象选择器.html">
            
                
                    <a href="../../md/css/伪对象选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.7.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="md/css/关于gitbook.html">
            
                
                    <a href="../../md/css/关于gitbook.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        关于gitbook
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >Introductionbgg</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h3 id="form&#x8868;&#x5355;">form&#x8868;&#x5355;</h3>
<p>&#x8BA9;&#x7528;&#x6237;&#x586B;&#x5199;&#x5B8C;&#x6BD5;&#x90FD;&#x662F;&#x4F1A;&#x63D0;&#x4EA4;&#x5230;&#x540E;&#x53F0;&#x8BB0;&#x5F55;&#x4E0B;&#x6765;<br>&#x4F8B;&#x5982;&#xFF1A;&#x586B;&#x5199;&#x59D3;&#x540D;&#xFF0C;&#x5E74;&#x9F84;&#xFF08;&#x6587;&#x672C;&#x6846;&#xFF09;&#xFF0C;&#x6027;&#x522B;&#xFF08;&#x5355;&#x9009;&#xFF09;&#xFF0C;&#x62A5;&#x540D;&#x9009;&#x9879;&#xFF08;&#x591A;&#x9009;&#xFF09;&#xFF0C;&#x6237;&#x7C4D;&#xFF08;&#x9009;&#x62E9;&#x6846;&#xFF09;
&#x5907;&#x6CE8;&#xFF08;&#x6587;&#x672C;&#x57DF;&#xFF09;
&#x5C5E;&#x6027;&#x89E3;&#x91CA;</p>
<pre><code>           input    &#x8F93;&#x5165;&#x6846;
           name          &#x7ED9;&#x540E;&#x53F0;&#x4EBA;&#x5458;&#x4F7F;&#x7528;&#x7684;&#x5C5E;&#x6027;&#xFF0C;&#x8BC6;&#x522B;&#x8FD9;&#x4E2A;&#x6570;&#x636E;&#x7684;&#x4F5C;&#x7528;
           value         &#x503C;   &#x53D1;&#x9001;&#x5230;&#x540E;&#x53F0;&#x7684;&#x503C;
           placeholder   &#x63D0;&#x793A;&#x8BED;

           type
              text       &#x6587;&#x672C;&#x6846;
              password   &#x5BC6;&#x7801;
              radio      &#x5355;&#x9009;
              checkbox   &#x591A;&#x9009;
</code></pre><pre><code>            &#x5173;&#x4E8E;url        hello.php?username=xxx&amp;sex=lady&amp;pos=
                           ?&#x7D27;&#x8DDF;&#x53C2;&#x6570;
                           &amp;&#x8FDE;&#x63A5;&#x591A;&#x4E2A;&#x53C2;&#x6570;


            action         &#x63D0;&#x4EA4;&#x5230;&#x540E;&#x53F0;&#x7684;&#x5730;&#x5740;&#xFF0C;php,jsp,asp,nodejs,java
            method         &#x63D0;&#x4EA4;&#x65B9;&#x5F0F;
                    get
                           hello.php?username=xxx&amp;sex=lady&amp;pos=

                                       &#x63D0;&#x4EA4;&#x7684;&#x4FE1;&#x606F;&#x4F1A;&#x62FC;&#x63A5;&#x5230;&#x63D0;&#x4EA4;&#x5730;&#x5740;&#xFF08;URL&#xFF09;&#x7684;&#x540E;&#x9762;&#x4EE5;&#x53C2;&#x6570;&#x7684;&#x5F62;&#x5F0F;&#x663E;&#x793A;
                                  &#x5B89;&#x5168;&#x6027;&#x8F83;&#x4F4E;&#xFF0C;&#x4F8B;&#x5982;&#x65B0;&#x95FB;&#xFF0C;&#x5929;&#x6C14;&#xFF0C;&#x8DEF;&#x51B5;&#x53EF;&#x663E;&#x793A;
                                  &#x4FE1;&#x606F;&#x957F;&#x5EA6;&#x8F83;&#x77ED;


                    post   
                                       &#x4FE1;&#x606F;&#x957F;&#x5EA6;&#x4E0D;&#x53D7;&#x9650;&#x5236;
                                       &#x5B89;&#x5168;&#x6027;&#x8F83;&#x9AD8;
                                       &#x4FE1;&#x606F;&#x653E;&#x5728;form data&#x5185;
</code></pre><p>&#x5F00;&#x59CB;</p>
<pre><code>&lt;form action=&quot;hello.php&quot; method=&quot;post&quot; target=&quot;&quot;&gt;
</code></pre><p>text</p>
<pre><code>&#x59D3;&#x540D;
&lt;input type=&quot;text&quot; name=&quot;username&quot; id=&quot;&quot; value=&quot;&quot; placeholder=&quot;&#x8BF7;&#x8F93;&#x5165;&#x7528;&#x6237;&#x540D;&quot;/&gt;
&lt;br /&gt;
&#x5BC6;&#x7801;
&lt;input type=&quot;password&quot; name=&quot;&quot; id=&quot;&quot; value=&quot;&quot;/&gt;
</code></pre><p>&#x5355;&#x9009;</p>
<pre><code>&#x6027;&#x522B;:
&#x7537;
&lt;input type=&quot;radio&quot; name=&quot;sex&quot; id=&quot;&quot; value=&quot;man&quot; /&gt;
&#x5973;
&lt;input type=&quot;radio&quot; name=&quot;sex&quot; id=&quot;&quot; value=&quot;lady&quot; /&gt;
&lt;br /&gt;
</code></pre><p>&#x591A;&#x9009;</p>
<pre><code>            &#x64C5;&#x957F;&#x4F4D;&#x7F6E;&#xFF1A;
            &lt;!--label&#x6807;&#x7B7E;
                 for&#x5C5E;&#x6027;&#x548C;input&#x6807;&#x7B7E;&#x7684;id&#x76F8;&#x5173;&#x8054;
                 --&gt;
            &lt;label for=&quot;pos_mid&quot;&gt;&#x4E2D;&#x5355;&lt;/label&gt;
            &lt;input type=&quot;checkbox&quot; name=&quot;pos&quot; id=&quot;pos_mid&quot; value=&quot;&quot; /&gt;
            &lt;label for=&quot;pos_top&quot;&gt;&#x4E0A;&#x5355;&lt;/label&gt;
            &lt;input type=&quot;checkbox&quot; name=&quot;pos&quot; id=&quot;pos_top&quot; value=&quot;top&quot; /&gt;

            &lt;label for=&quot;pos_jug&quot;&gt;&#x6253;&#x91CE;&lt;/label&gt;
            &lt;input type=&quot;checkbox&quot; name=&quot;pos&quot; id=&quot;pos_jug&quot; value=&quot;jug&quot; /&gt;
            &lt;br /&gt;
</code></pre><p>select</p>
<pre><code>&lt;select name=&quot;&quot;&gt;
                &lt;option value=&quot;&#x5929;&#x6CB3;&#x533A;&quot;&gt;&#x5929;&#x6CB3;&#x533A;&lt;/option&gt;
                &lt;option value=&quot;&#x767D;&#x4E91;&#x533A;&quot;&gt;&#x767D;&#x4E91;&#x533A;&lt;/option&gt;
                &lt;option value=&quot;&#x8D8A;&#x79C0;&#x533A;&quot;&gt;&#x8D8A;&#x79C0;&#x533A;&lt;/option&gt;
&lt;/select&gt;
</code></pre><p>textarea</p>
<pre><code>&lt;textarea style=&quot;resize: none;&quot; name=&quot;&quot; rows=&quot;&quot; cols=&quot;&quot; maxlength=&quot;10&quot; placeholder=&quot;&#x8BF7;&#x8F93;&#x5165;140&#x5B57;&#x4EE5;&#x5185;&#x7684;&#x5185;&#x5BB9;&quot;&gt;&lt;/textarea&gt;
            rows       &#x5BBD;&#x5EA6;
            cols       &#x9AD8;&#x5EA6;
            maxlength  &#x8BBE;&#x7F6E;&#x5B57;&#x7B26;&#x6700;&#x5927;&#x6570;&#x503C;
            &#x9632;&#x6B62;&#x7528;&#x6237;&#x62D6;&#x52A8;&#x6587;&#x672C;&#x6846;&#x5F71;&#x54CD;&#x5E03;&#x5C40; &#x8FD9;&#x91CC;&#x7528;CSS&#x5C5E;&#x6027;&#x8BBE;&#x7F6E;
            style=&quot;resize: none &#x56FA;&#x5B9A;&#x5927;&#x5C0F;
</code></pre><p>&#x91CD;&#x7F6E;&#x548C;&#x63D0;&#x4EA4;</p>
<pre><code>&lt;input type=&quot;reset&quot; value=&quot;&#x6E05;&#x7A7A;&quot; /&gt;
&lt;input type=&quot;submit&quot; value=&quot;&#x63D0;&#x4EA4;&quot;/&gt;
</code></pre>
                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../md/HTML/iframe标签.html" class="navigation navigation-prev " aria-label="Previous page: iframe标签"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../md/HTML/列表.html" class="navigation navigation-next " aria-label="Next page: 列表"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
